<?php
   header('content-type: text/css');
   ob_start('ob_gzhandler');
   header('Cache-Control: max-age=31536000, must-revalidate');
   
	try
	{
		$bdd = new PDO('mysql:host=localhost;dbname=unmei', 'root', '');
	}
	catch(Exception $e)
	{
		die('Erreur : '.$e->getMessage());
	}
	$req = $bdd->query('SELECT * FROM admin_config');
	$config = $req->fetch();
	$image_logo=$config['image_logo'];

	$bleu = $config['couleur_bleu'];
	$sable = $config['couleur_sable'];
	$blanc = $config['couleur_blanc'];
	$moyen = $config['couleur_neutre'];
	$fonce = $config['couleur_fonce'];


?>

@font-face {
    font-family: 'KingthingsCalligraphicaLight';
    src: url('polices/Kingthings_Calligraphica_Light-webfont.eot');
    src: url('polices/Kingthings_Calligraphica_Light-webfont.eot?#iefix') format('embedded-opentype'),
         url('polices/Kingthings_Calligraphica_Light-webfont.woff') format('woff'),
         url('polices/Kingthings_Calligraphica_Light-webfont.ttf') format('truetype'),
         url('polices/Kingthings_Calligraphica_Light-webfont.svg#KingthingsCalligraphicaLight') format('svg');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'KingthingsCalligraphica2Rg';
    src: url('polices/Kingthings_Calligraphica_2-webfont.eot');
    src: url('polices/Kingthings_Calligraphica_2-webfont.eot?#iefix') format('embedded-opentype'),
         url('polices/Kingthings_Calligraphica_2-webfont.woff') format('woff'),
         url('polices/Kingthings_Calligraphica_2-webfont.ttf') format('truetype'),
         url('polices/Kingthings_Calligraphica_2-webfont.svg#KingthingsCalligraphica2Rg') format('svg');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'KingthingsCalligCalligraphica';
    src: url('polices/Kingthings_Calligraphica_Italic-webfont.eot');
    src: url('polices/Kingthings_Calligraphica_Italic-webfont.eot?#iefix') format('embedded-opentype'),
         url('polices/Kingthings_Calligraphica_Italic-webfont.woff') format('woff'),
         url('polices/Kingthings_Calligraphica_Italic-webfont.ttf') format('truetype'),
         url('polices/Kingthings_Calligraphica_Italic-webfont.svg#KingthingsCalligCalligraphica') format('svg');
    font-weight: normal;
    font-style: normal;
}

img{
	border:none
}

html {
	font-size:100%;
	background-color: <?php echo $moyen; ?>;
	margin:0;
	padding:0
}

body {
	width:1000px;
	min-height:800px;
	margin:0 auto;
	padding:0
}

required {
	background-color: <?php echo $moyen; ?>;
}

details{
	clear: both;
}

hr{
	clear: both;
}

th {
	font-size: 12px;
	text-align: left;
	border-bottom: 1px dotted <?php echo $moyen; ?>;
}

td {
	font-size: 11px;
}

.erreur {
	color: orange;
	font-weight: bold;
}

#content{
	color:<?php echo $sable; ?>;
	font-size:.9em;
	font-family:Arial, Helvetica, sans-serif;
	background-color:<?php echo $blanc; ?>;
	width:995px;
	min-height:900px;
	margin:10px auto;
	padding:0;
	border:1px solid #000;
	border-radius: 20px;
}

#logo{
	width:950px;
	margin:10px auto;
	padding:5px;
	text-align: center;
	background-position:center center;
	background-image:url(../<?php echo $image_logo; ?>);
	background-repeat:no-repeat;
}

#logo h1{
	text-align: center;
	font-size: 100px;
	font-family: 'KingthingsCalligraphica2Rg', Arial, sans-serif;
	text-shadow: 2px 2px 2px black, -2px -2px 2px white;
}

#logo h2{
	text-align: center;
	font-size: 50px;
	font-family: 'KingthingsCalligraphica2Rg', Arial, sans-serif;
	color: <?php echo $bleu; ?>;
	text-shadow: 2px 2px 2px black, -2px -2px 2px white;
}

#nav{
	margin: 0 ;
	padding: 0 ;
	list-style: none ;
	text-align: center ;
}

#nav p{
	margin:0;
	padding:0
}

#nav li{
	display: inline ;
	margin-right: 1px ;
	color: <?php echo $blanc; ?> ;
	background: <?php echo $bleu; ?> ;
	font-size: 11px;
 }
 
#nav li a {
	padding: 4px 20px ;
	background: <?php echo $bleu; ?> ;
	color: <?php echo $blanc; ?> ;
	border: 1px solid <?php echo $moyen; ?> ;
	font: 1em "Trebuchet MS",Arial,sans-serif ;
	line-height: 1em ;
	text-align: center ;
	text-decoration: none ;
	border-radius: 10px;
	box-shadow: 2px 2px 1px black;
	font-size: 11px;
}

#nav li a:hover, #nav li a:focus, #nav li a:active {
	background:<?php echo $sable; ?>;
	text-decoration: none ;
	color: <?php echo $blanc; ?>;
	font-size: 11px;
}

#cont{
	width:985px;
	margin:10px auto;
	padding:0;
	background-color:<?php echo $blanc; ?>
}

#side-menu{
	width:180px;
	min-height:400px;
	margin:10px;
	padding:5px;
	float:left;
	background: <?php echo $bleu; ?>;
	border:1px solid #000;
	border-radius: 10px;
	box-shadow: 2px 2px 1px black;
}

#module-menu{
	border:1px solid #000;
	background: <?php echo $blanc; ?> ;
	margin-bottom: 5px;
	border-radius: 10px;
	box-shadow: 2px 2px 1px black inset;
}

#module-menu h1{
	font-family: 'KingthingsCalligraphicaLight', Arial, sans-serif;
	text-align: center;
	font-size: 18px;
	color: <?php echo $moyen; ?>;
}
#module-menu p{
	font-family: Arial, sans-serif;
	text-align: center;
	font-size: 12px;
	color: <?php echo $moyen; ?>;
}

#module-menu a{
	font-family: Arial, sans-serif;
	text-align: center;
	font-size: 11px;
	color: <?php echo $moyen; ?>;
}
#module-menu a:hover{
	font-family: Arial, sans-serif;
	text-align: center;
	font-size: 11px;
	color: <?php echo $moyen; ?>;
}

#module-staff{
	border:1px solid #000;
	background: <?php echo $blanc; ?> ;
	margin-bottom: 5px;
	border-radius: 10px;
	box-shadow: 2px 2px 1px black inset;
}

#module-staff h1{
	font-family: 'KingthingsCalligraphicaLight', Arial, sans-serif;
	text-align: center;
	font-size: 18px;
	color: <?php echo $moyen; ?>;
}

#module-staff p{
	font-family: Arial, sans-serif;
	font-size: 12px;
	color: <?php echo $moyen; ?>;
	margin-left: 15px;
	font-weight: bold;
}

#module-staff a{
	font-family: Arial, sans-serif;
	text-align: center;
	font-size: 11px;
	color: <?php echo $moyen; ?>;
}

#module-staff a:hover{
	font-family: Arial, sans-serif;
	text-align: center;
	font-size: 11px;
	color: <?php echo $moyen; ?>;
}

#module-membres{
	border:1px solid #000;
	background: <?php echo $blanc; ?> ;
	margin-bottom: 5px;
	border-radius: 10px;
	box-shadow: 2px 2px 1px black inset;
}

#module-membres h1{
	font-family: 'KingthingsCalligraphicaLight', Arial, sans-serif;
	text-align: center;
	font-size: 18px;
	color: <?php echo $moyen; ?>;
}

#module-membres p{
	font-family: Arial, sans-serif;
	text-align: center;
	font-size: 12px;
	color: <?php echo $moyen; ?>;
}

#module-membres a{
	font-family: Arial, sans-serif;
	text-align: center;
	font-size: 11px;
	color: <?php echo $moyen; ?>;
}

#module-membres a:hover{
	font-family: Arial, sans-serif;
	text-align: center;
	font-size: 11px;
	color: <?php echo $moyen; ?>;
}

#corps{
	width:510px;
	min-height:400px;
	margin:10px 0 10px 15px;
	padding:5px;
	float:left;
	border:0px solid #000;
}

#corps h1{
	font-family: 'KingthingsCalligraphicaLight', Arial, sans-serif;
	font-size: 20px;
	color: $fonce;
	text-shadow:1px 1px 2px <?php echo $bleu; ?>;
	clear: both;
	border-bottom: 1px dashed $fonce;
}

#corps p{
	font-family: Arial, sans-serif;
	font-size: 12px;
	color: $fonce;
}

#menu-side{
	width:190px;
	min-height:400px;
	margin:10px;
	padding:5px;
	float:right;
}

#module-annonces{
	border:1px solid #000;
	margin-bottom: 5px;
	background: <?php echo $sable; ?>;
	border-radius: 10px;
	box-shadow: 2px 2px 1px black;
}

#module-annonces h1{
	font-family: 'KingthingsCalligraphicaLight', Arial, sans-serif;
	text-align: center;
	font-size: 18px;
	color: <?php echo $moyen; ?>;
	text-shadow:1px 1px 1px 1px white;
}

#module-partenaires{
	border:1px solid #000;
	margin-bottom: 5px;
	background: <?php echo $sable; ?>;
	border-radius: 10px;
	box-shadow: 2px 2px 1px black;
}

#module-partenaires h1{
	font-family: 'KingthingsCalligraphicaLight', Arial, sans-serif;
	text-align: center;
	font-size: 18px;
	color: <?php echo $moyen; ?>;
	text-shadow:1px 1px 1px 1px white;
}

#module-infos{
	border:1px solid #000;
	margin-bottom: 5px;
	background: <?php echo $sable; ?>;
	border-radius: 10px;
	box-shadow: 2px 2px 1px black;
}

#module-infos h1{
	font-family: 'KingthingsCalligraphicaLight', Arial, sans-serif;
	text-align: center;
	font-size: 18px;
	color: <?php echo $moyen; ?>;
	text-shadow:1px 1px 1px 1px white;
}

#forum{
	width: 950px;
	margin-left: 20px;
	margin-right: 20px;
	clear: both;
	background-color: <?php echo $blanc; ?>;
	border: 1px dotted <?php echo $moyen; ?>;
}

#niveau1 {
	border: 0px solid <?php echo $moyen; ?>;
}

#niveau1 h1{
	font-family: 'KingthingsCalligCalligraphica', Arial, sans-serif;
	margin: 0;
	padding-left: 5px;
	font-size: 16px;
	color: <?php echo $moyen; ?>;
}

#niveau1  p{
	font-family: Arial, sans-serif;
	margin: 0;
	padding: 10px;
	font-size: 11px;
	color: <?php echo $moyen; ?>;
}

#niveau2 {
	border: 0px solid <?php echo $moyen; ?>;
}

#niveau2 h1{
	font-family: 'KingthingsCalligCalligraphica', Arial, sans-serif;
	margin: 0;
	padding-left: 10px;
	font-size: 16px;
	color: <?php echo $moyen; ?>;
}

#niveau2  p{
	font-family: Arial, sans-serif;
	margin: 0;
	padding: 15px;
	font-size: 11px;
	color: <?php echo $moyen; ?>;
}

#niveau3 {
	border: 0px solid <?php echo $moyen; ?>;
}

#niveau3 h1{
	font-family: 'KingthingsCalligCalligraphica', Arial, sans-serif;
	margin: 0;
	padding-left: 10px;
	font-size: 16px;
	color: <?php echo $moyen; ?>;
}

#niveau3  p{
	font-family: Arial, sans-serif;
	margin: 0;
	padding: 15px;
	font-size: 11px;
	color: <?php echo $moyen; ?>;
}

#footer{
	width: 950px;
	height: 150px;
	margin-left: 20px;
	margin-right: 20px;
	clear: both;
	background-color: <?php echo $blanc; ?>;
	border: 0px solid #000;
}

#block-gauche{
	width:170px;
	margin:5px;
	padding:5px;
	float:left;
	border-bottom: 2px solid <?php echo $bleu; ?>;
	border-right: 2px solid <?php echo $bleu; ?>;
	border-left: 1px dotted <?php echo $bleu; ?>;
	border-top: 1px dotted <?php echo $bleu; ?>;
	border-radius: 10px;
	box-shadow: 2px 2px 1px <?php echo $bleu; ?>;
}

#block-centre{
	width:540px;
	margin:5px;
	padding:5px;
	float:left;
	border: 0px solid #000;
}

#block-droite{
	width:170px;
	margin:5px;
	padding:5px;
	float:right;
	border-bottom: 2px solid <?php echo $bleu; ?>;
	border-right: 2px solid <?php echo $bleu; ?>;
	border-left: 1px dotted <?php echo $bleu; ?>;
	border-top: 1px dotted <?php echo $bleu; ?>;
	border-radius: 10px;
	box-shadow: 2px 2px 1px <?php echo $bleu; ?>;
}

#block-gauche h1{
	text-align: center;
	font-size: 20px;
	font-family: 'KingthingsCalligraphicaLight', Arial, sans-serif;
	color: <?php echo $bleu; ?>;
	text-shadow: 1px 1px 1px <?php echo $moyen; ?>;
	font-variant: small-caps;
}

#block-gauche li {
	list-style-type: none;
	background-image: url(./images/puce.png);
	background-repeat: no-repeat;
	background-position: 0 0.32em;
	padding-left: 20px;
}

#block-gauche li  a{
	font-family: Arial, sans-serif;
	font-size: 11px;
	color: <?php echo $moyen; ?>;
}

#block-gauche li  a:hover{
	font-family: Arial, sans-serif;
	font-size: 11px;
	color: <?php echo $bleu; ?>;
}

#block-centre h1{
	text-align: center;
	font-size: 20px;
	font-family: 'KingthingsCalligraphicaLight', Arial, sans-serif;
	color: <?php echo $bleu; ?>;
	text-shadow: 1px 1px 1px <?php echo $moyen; ?>;
	font-variant: small-caps;
}

#block-droite h1{
	text-align: center;
	font-size: 20px;
	font-family: 'KingthingsCalligraphicaLight', Arial, sans-serif;
	color: <?php echo $bleu; ?>;
	text-shadow: 1px 1px 1px <?php echo $moyen; ?>;
	font-variant: small-caps;
}

#block-droite li {
	list-style-type: none;
	background-image: url(./images/puce.png);
	background-repeat: no-repeat;
	background-position: 0 0.32em;
	padding-left: 20px;
}

#block-droite li  a{
	font-family: Arial, sans-serif;
	font-size: 11px;
	color: <?php echo $moyen; ?>;
}

#block-droite li  a:hover{
	font-family: Arial, sans-serif;
	font-size: 11px;
	color: <?php echo $bleu; ?>;
}



div.pagination {
	padding: 3px;
	margin: 3px;
	text-align:center;
	color:<?php echo $bleu; ?>;
	font-size:80%;
}
	
div.pagination a {
	border: 1px dotted <?php echo $bleu; ?>;
	margin-right:3px;
	padding:5px 7px;
	background-position:bottom;
	text-decoration: none;
	color: <?php echo $bleu; ?>;
}
div.pagination a:hover, div.meneame a:active {
	border: 1px dotted <?php echo $bleu; ?>;
	background-image:none;
	background-color:<?php echo $sable; ?>;
	color: <?php echo $blanc; ?>;
}
div.pagination span.current {
	margin-right:3px;
	padding:5px 7px;
	border: 1px dotted <?php echo $bleu; ?>;
	font-weight: bold;
	background-color: <?php echo $blanc; ?>;
	color: <?php echo $bleu; ?>;
}
div.pagination span.disabled {
	margin-right:3px;
	padding:5px 7px;
	border: 1px dotted <?php echo $sable; ?>;
	color: <?php echo $bleu; ?>;
}

dt {
	font-weight: bold;
	padding: 5px;
	margin: 10px;
	font-size: 11px;
}

dd {
	padding: 5px;
	margin: 10px;
	font-size: 11px;
}

.rating {  
   direction: rtl;  
}  
.rating a {  
   color: #aaa;  
   text-decoration: none;  
   font-size: 14px;  
   transition: color .4s;  
}  
.rating a:hover,  
.rating a:focus,  
.rating a:hover ~ a,  
.rating a:focus ~ a {  
   color: <?php echo $bleu; ?>;  
   cursor: pointer;  
}  

.tableau  {
	width: 100%;
	border: 1px dotted $fonce;
	font-size: 11px;
	padding: 2px;
}
.tableau  th {
	font-weight: bold;
	background-color: <?php echo $sable; ?>;
	color: $fonce;
	text-align: left;

}
.tableau  td {
	font-weight: normal;
	color: $fonce;
	margin: 2px;
	border: 1px dotted $fonce;
}